<?php $this->load->view('inc/header.php');?>
<style>
.pagenav{
	padding: 10px 0px;
	border: none;
	width: auto;

}
</style>
<div class="b2"></div>

<div class="panel w2">
<?php $this->load->view('user/inc_friend_nav.php');?>
<div class="b2"></div>
<div class="fans">

<div>

<form action="<?php echo site_url();?>" method="get">
	<input type="hidden" name="c" value="user"/>
	<input type="hidden" name="m" value="find"/>
    <input name="nname" value="<?php echo fd('p.nname');?>"/>
    <input type="submit" value="查找"/>
</form>

<div class="b2"></div>
</div>

<?php foreach ($list as $k=>$v):?>
<div class="fans-item">
	<div class="fans-item-wrp">
	<div class="fans-item-avatar">
		<?php avatar($v->email);?>
	</div>
	<div class="fans-item-nname c2"><?php echo $v->nname;?></div>

	<?php if($v->is_followed):?>
	<div class="fans-item-opt">
		<a class="btn-follow btn-ajax-confirm" 
			msg='确定要取消关注吗？'
			href="<?php echo site_url('c=user&m=unfollow&id='.$v->id);?>">已关注</a>		
	<?php else:?>
	<div class="fans-item-opt">
		<a class="btn-ajax" 
			href="<?php echo site_url('c=user&m=follow_do&id='.$v->id);?>">关注</a>		
	<?php endif;?>
	
	</div>
	</div>
</div>		
<div class="b1"></div>
<?php endforeach;?>
<?php echo $pagenav;?>

</div>
</div>

<?php $this->load->view('inc/footer.php');?>


